A military conflict that involves civilian targets and uses every available resource for fighting is known as total war.
Today, total war would defy international laws and agreements about the use of military force. Just as the term implies, all rules are off the table in a total war: any weapons can be used, and any person or place can be targeted with violence. Countries engaging in this kind of combat tend to see every citizen as a resource to be used in the war. Most historians consider both World War I and World War II to have been total wars.